import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import dayjs from 'dayjs'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.config.productionTip = false

// 处理axios传时间对象会自动处理8小时时区的问题 改写Date原型方法toISOString
Date.prototype.toISOString = function () {
	return dayjs(this).format('YYYY-MM-DD HH:mm:ss')
}
// 挂载dayjs时间处理器
Vue.prototype.$dayjs = dayjs

Vue.use(ElementUI);

new Vue({
	router,
	store,
	render: (h) => h(App),
}).$mount('#app')
